#pragma once
#include<fstream>
#include<string>
#include <hash_map>

using namespace std;

namespace configService{

	class Config{

	private:
		ifstream configfile;
		Config();	
		static Config* instance;
		void configfile_open();
		void configfile_close();
		static string CONFIGFILENAME;
		hash_map<string,string> properties;

	public:
		string getProperty(string);
		static Config* getConfig();
		~Config();
		string toString();
	};
};